package com.lcj.bff.driver.service.impl;

import com.lcj.bff.driver.controller.form.MessageIdForm;
import com.lcj.bff.driver.controller.form.SearchMessageByPageForm;
import com.lcj.bff.driver.feign.SnmServiceApi;
import com.lcj.bff.driver.service.MessageService;
import com.lcj.common.util.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MessageServiceImpl implements MessageService {

    @Resource
    private SnmServiceApi snmServiceApi;

    @Override
    public Result searchMessageByPage(SearchMessageByPageForm form) {
        Result result = snmServiceApi.searchMessageByPage(form);
        return result;
    }

    @Override
    public Result searchMessageById(MessageIdForm form) {
        Result result = snmServiceApi.searchMessageById(form);
        return result;
    }

    @Override
    public Result updateUnreadMessage(MessageIdForm form) {
        Result result = snmServiceApi.updateUnreadMessage(form);
        return result;
    }

    @Override
    public Result deleteMessageRefById(MessageIdForm form) {
        Result result = snmServiceApi.deleteMessageRefById(form);
        return result;
    }
}
